package com.yida.gwj.report.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @Author: PPV
 * @Date: 2023-03-20
 */
@ApiModel("结息请求")
public class GwjSettleRateRequest {

//    @NotNull(message = "当年增值收益不能为空")
    @ApiModelProperty("当年增值收益")
    private BigDecimal yearBenefit;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @NotNull(message = "起始时间不能为空")
    @ApiModelProperty("起始时间")
    private LocalDate startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @NotNull(message = "结束时间不能为空")
    @ApiModelProperty("结束时间")
    private LocalDate endTime;

//    @NotNull(message = "地区不能为空")
    @ApiModelProperty("地区")
    private Long areaId;

    @NotNull(message = "请求参数有误[id]为空")
    @ApiModelProperty("主键")
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getYearBenefit() {
        return yearBenefit;
    }

    public void setYearBenefit(BigDecimal yearBenefit) {
        this.yearBenefit = yearBenefit;
    }

    public LocalDate getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDate startTime) {
        this.startTime = startTime;
    }

    public LocalDate getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDate endTime) {
        this.endTime = endTime;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }
}
